/**
 * Esta e a primeira fase rock n roll racing
 * aqui sa oconfigurados o mundo o player etc
 */
import rocknrollracing.phase.*;
import rocknrollracing.gameelement.*;
import corejuliano.*;
import corejuliano.gameelement.world.*;
import corejuliano.gameelement.*;

import util.*;
import flash.geom.*;

 
class rocknrollracing.phase.RocknRollRacingPhase01 extends RocknRollRacingPhase
{
		
	public function RocknRollRacingPhase01()
	{
		super();		
	}
	
	public function start():Void
	{
		super.start();
		createWorld("mCenarioPhase01");
		createItem("pista", new Point(40,40));
		createWall("wallLeft", new Point(0,0));
		createWall("wallUp", new Point(40,0));
		createWall("wallRigth", new Point(760,40));
		createWall("wallDown", new Point(40,860));
		createWall("mWallCenter", new Point(200,200));
		createPlayer("car",new Point(95,160));
	}
	
	
	
	public function startEspecifyPhase():Void
	{
		/*
		createPlayer("car",new Point(3,5));	
		
		var world:World = GameManager.getInstance().getActivePhase().getWorld();
		var tile = new Tile();
		//tile.setPosition(new Point(0,0));			
		//createWall ("wallLeft", tile, world.getWorldTopDownCanvas());
		
		//tile.setPosition(new Point(3,5));
		//createWall ("wallUp", tile, world.getWorldTopDownCanvas());
		
		tile.setPosition(new Point(3,5));
		//tile.setDepth(1);
		createWall ("wallLeft", tile);
		Logger.trace("Tile: " + tile,1);
		//tile.setPosition(new Point(0,22));
		//createWall ("wallDown", tile, world.getWorldTopDownCanvas());
		
		tile.setPosition(new Point(48,20));		
		//createWall ("meio", tile, world.getWorldTopDownCanvas());
		*/
	}
	
	public function toString():String
	{
		return "rocknrollracing.phase.RocknRollRacingPhase01";
	}

}